package com.liangtian.mdm.dm.common.pojo;

/**
 * <p>ResponseMsg介绍</p>
 * <p>
 * demo 返回的实体属性RspData采用泛型  new ResponseMsg时需要传入返回的类型
 * 例如:new ResponseMsg<DbSource>()  或者 new ResponseMsg<List<DbSource>() 或者new ResponseMsg<Map<String,DbSource>>()
 */
public class ResponseMsg<T> {

    private int rspCode;//相应代码 枚举数据 0:标示成功 -1标示失败
    private String rspMsg;//信息  成功   异常信息
    private T rspData;//返回数据

    public int getRspCode() {
        return rspCode;
    }

    public void setRspCode(int rspCode) {
        this.rspCode = rspCode;
    }

    public String getRspMsg() {
        return rspMsg;
    }

    public void setRspMsg(String rspMsg) {
        this.rspMsg = rspMsg;
    }

    public T getRspData() {
        return rspData;
    }

    public void setRspData(T rspData) {
        this.rspData = rspData;
    }
}
